package com.agriculture.monitor.service;

import com.agriculture.monitor.dto.MenuDataDTO;
import com.agriculture.monitor.dto.RoleMenuDTO;
import com.agriculture.monitor.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2024-03-21
 */
public interface IMenuService extends IService<Menu> {

    MenuDataDTO checkRole(Integer roleId);

    Boolean saveRoleMenu(RoleMenuDTO roleMenuDTO);

    List<Menu> tree(Menu menu);
}
